<?php
	
	function displayDynamicLinkBar()
	{
		if(adminIsLoggedIn()):
			setElementByID("linkBar", adminLinkBar());
		else:
			setElementByID("linkBar", publicLinkBar());
		endif;
	}
	
	function adminLinkBar()
	{?>
		<a href="/proj2/create_ticket.php">Submit New Ticket</a>	
		<a href="/proj2/admin_page.php">Admin Page</a>;
		<?php
	}
	
	function publicLinkBar()
	{?>
		<div>
		<a href="/proj2/admin_login.php">Admin Login</a>
		<a href="/proj2/create_ticket.php">Submit New Ticket</a>		
	<?php	
	}

?>